import Vue from 'vue'
// 直接将Vue组件作为Vue.extend的参数
import DocumentPaperModel from "./DocumentPaperModel";
import store from "@/store";
import router from "@/router"

const showDocumentPaperModel = (showData) => {
    const choiceTreeConstructor = Vue.extend(DocumentPaperModel);
    const instance = new choiceTreeConstructor({
        el: document.createElement("div"),
        store,
        router
    });

    document.querySelector("body").appendChild(instance.$el);
    return instance.showModal(showData);
}

export default showDocumentPaperModel;